﻿#include "IniTree.h"


#pragma warning ( push )
#pragma warning ( disable : 4290 )


namespace ksini
{


void IniTree::saveToFile(const std::string& filename) 
										throw (std::runtime_error)
{
	std::string temp;
	int level = 0;
	root.apendToStr(temp, level);
	detail::saveStrToFile(temp, filename);

}

void IniTree::loadFromFile(const std::string& filename) throw (std::runtime_error)
{
	std::string temp;
	detail::loadStrFromFile(temp, filename);
	root.readFromStr(temp);
}




}

#pragma warning ( pop )

